
package com.carsite.service;

import java.util.List;

import com.carsite.service.Manager;
import com.carsite.model.Product;
import com.carsite.dao.ProductDao;

public interface ProductManager extends Manager {
    /**
     * Retrieves all of the products
     */
    public List getProducts(Product product);

    /**
     * Gets product's information based on id.
     * @param id the product's id
     * @return product populated product object
     */
    public Product getProduct(final String id);

    /**
     * Saves a product's information
     * @param product the object to be saved
     */
    public void saveProduct(Product product);

    /**
     * Removes a product from the database by id
     * @param id the product's id
     */
    public void removeProduct(final String id);
}

